<form  method="post" id="${objName}Form">
<input type="hidden" name="formToken"/>
<table  cellpadding="0" cellspacing="1" class="info">
   <#list metadatas as mt>
<#if mt.dataRestrict=="1"><input type="hidden" name="${mt.dataAttr}"> <#else>
  	<tr>
		<td>${mt.dataFullName}</td> 
		<td>
			<input type=text name="${mt.dataAttr}" class="easyui-validatebox" validType="length[1,50]" size="50" <#if mt.dataRestrict=="2">requierd="true"</#if>>
    	</td>
  	</tr>
  	</#if>
  	</#list>
</table>
</form>

<center>
	<a href="javascript:void(0)" class="save_btn" onclick="${objName}Do('${objName}Form')">保存信息</a>
</center>

<script>
function ${objName}Validate(){
	if(!###("#${objName}Form").form('validate')){
	    return false;
	}
	return true
}
function ${objName}Do(editForm){
	if(${objName}Validate()){
		objSubmit('${objName}',editForm,'1');
	}else{
		alert("*号为必填项！");
	}
}
</script>